home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / vtcl / vtcl.h < prev   
Encoding:
C/C++ Source or Header  |  1995-07-06  |  1.5 KB  |  46 lines

  1. /* CVS $Id: wstcl.h,v 1.2 1994/04/28 16:35:40 shonagh Exp $ */
  2. /*-------------------------------------------------------------------------
  3.   Copyright (c) 1994                   The Santa Cruz Operation, Inc.
  4.   -------------------------------------------------------------------------
  5.   All rights reserved.  No part of this  program or publication may be
  6.   reproduced, transmitted, transcribed, stored  in a retrieval system,
  7.   or translated into any language or computer language, in any form or
  8.   by any  means,  electronic, mechanical, magnetic, optical, chemical,
  9.   biological, or otherwise, without the  prior written  permission of:
  10.  
  11.            The Santa Cruz Operation, Inc.  (408) 425-7222
  12.            400 Encinal St, Santa Cruz, CA  95060 USA
  13.   -------------------------------------------------------------------------
  14.  
  15.  
  16. #ifndef VTCL_H
  17.  
  18. #define VTCL_H
  19.  
  20. #include <tcl.h>
  21.  
  22. /* Function prototype for function called in response to input or remove */
  23. /* the function should return a Tcl status TCL_OK etc. */
  24. typedef int (*INPUT_PROC)(Tcl_Interp *, int, caddr_t);
  25.  
  26. enum {    INPUT_SUCCESS = 0,    /* everything ok */
  27.     INPUT_DUP,        /* duplicate file descrip */
  28.     INPUT_NOT_FOUND,    /* couldn't find file descip in CRemoveInput */
  29.     INPUT_MEM_ALLOC,    /* memory allocation error */
  30.     INPUT_FAILURE        /* generic failure code */
  31. };
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif 
  36.  
  37. extern int WsAddInput(FILE *, int, INPUT_PROC, INPUT_PROC, caddr_t);
  38. extern int WsRemoveInput(int);
  39.  
  40. #ifdef __cplusplus
  41. }
  42. #endif 
  43.  
  44. #endif  /* VTCL_H */
  45.  
  46.